x86: fix pvh dom0 boot after dab11417d
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Jul 2014 16:04:28 +0000 (18:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Jul 2014 16:04:28 +0000 (18:04 +0200)
commit9d2efbafb895d1a3b5d70823b59faf71701ff1f9
treea63b8d37217c1c4bbdf66a091e7b80f4ef2b16ed
parent05377dede434c746e6708f055858378d20f619db
x86: fix pvh dom0 boot after dab11417d

Changeset dab11417d
"x86/HVM: consolidate and sanitize CR4 guest reserved bit determination"

did not take into account the fact that dom0 does not have a cpuid policy.  As
a result, PVH dom0s would be given unexpected #GP faults on boot.

In addition to the restore case (where the toolstack has not had time to load
a cpuid policy), unconditionally exempt the hardware domain from needing a
policy.

Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/hvm.c